Optimal. Leaf size=218 \[ -\frac{\log \left (5 (2 x+1)-\sqrt{10 \left (2+\sqrt{35}\right )} \sqrt{2 x+1}+\sqrt{35}\right )}{\sqrt{14 \left (2+\sqrt{35}\right )}}+\frac{\log \left (5 (2 x+1)+\sqrt{10 \left (2+\sqrt{35}\right )} \sqrt{2 x+1}+\sqrt{35}\right )}{\sqrt{14 \left (2+\sqrt{35}\right )}}-\sqrt{\frac{2}{217} \left (2+\sqrt{35}\right )} \tan ^{-1}\left (\frac{\sqrt{10 \left (2+\sqrt{35}\right )}-10 \sqrt{2 x+1}}{\sqrt{10 \left (\sqrt{35}-2\right )}}\right )+\sqrt{\frac{2}{217} \left (2+\sqrt{35}\right )} \tan ^{-1}\left (\frac{10 \sqrt{2 x+1}+\sqrt{10 \left (2+\sqrt{35}\right )}}{\sqrt{10 \left (\sqrt{35}-2\right )}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.271973, antiderivative size = 218, normalized size of antiderivative = 1., number of steps used = 10, number of rules used = 6, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.273, Rules used = {707, 1094, 634, 618, 204, 628} \[ -\frac{\log \left (5 (2 x+1)-\sqrt{10 \left (2+\sqrt{35}\right )} \sqrt{2 x+1}+\sqrt{35}\right )}{\sqrt{14 \left (2+\sqrt{35}\right )}}+\frac{\log \left (5 (2 x+1)+\sqrt{10 \left (2+\sqrt{35}\right )} \sqrt{2 x+1}+\sqrt{35}\right )}{\sqrt{14 \left (2+\sqrt{35}\right )}}-\sqrt{\frac{2}{217} \left (2+\sqrt{35}\right )} \tan ^{-1}\left (\frac{\sqrt{10 \left (2+\sqrt{35}\right )}-10 \sqrt{2 x+1}}{\sqrt{10 \left (\sqrt{35}-2\right )}}\right )+\sqrt{\frac{2}{217} \left (2+\sqrt{35}\right )} \tan ^{-1}\left (\frac{10 \sqrt{2 x+1}+\sqrt{10 \left (2+\sqrt{35}\right )}}{\sqrt{10 \left (\sqrt{35}-2\right )}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 707
Rule 1094
Rule 634
Rule 618
Rule 204
Rule 628
Rubi steps
\begin{align*} \int \frac{1}{\sqrt{1+2 x} \left (2+3 x+5 x^2\right )} \, dx &=4 \operatorname{Subst}\left (\int \frac{1}{7-4 x^2+5 x^4} \, dx,x,\sqrt{1+2 x}\right )\\ &=\sqrt{\frac{2}{7 \left (2+\sqrt{35}\right )}} \operatorname{Subst}\left (\int \frac{\sqrt{\frac{2}{5} \left (2+\sqrt{35}\right )}-x}{\sqrt{\frac{7}{5}}-\sqrt{\frac{2}{5} \left (2+\sqrt{35}\right )} x+x^2} \, dx,x,\sqrt{1+2 x}\right )+\sqrt{\frac{2}{7 \left (2+\sqrt{35}\right )}} \operatorname{Subst}\left (\int \frac{\sqrt{\frac{2}{5} \left (2+\sqrt{35}\right )}+x}{\sqrt{\frac{7}{5}}+\sqrt{\frac{2}{5} \left (2+\sqrt{35}\right )} x+x^2} \, dx,x,\sqrt{1+2 x}\right )\\ &=\frac{\operatorname{Subst}\left (\int \frac{1}{\sqrt{\frac{7}{5}}-\sqrt{\frac{2}{5} \left (2+\sqrt{35}\right )} x+x^2} \, dx,x,\sqrt{1+2 x}\right )}{\sqrt{35}}+\frac{\operatorname{Subst}\left (\int \frac{1}{\sqrt{\frac{7}{5}}+\sqrt{\frac{2}{5} \left (2+\sqrt{35}\right )} x+x^2} \, dx,x,\sqrt{1+2 x}\right )}{\sqrt{35}}-\frac{\operatorname{Subst}\left (\int \frac{-\sqrt{\frac{2}{5} \left (2+\sqrt{35}\right )}+2 x}{\sqrt{\frac{7}{5}}-\sqrt{\frac{2}{5} \left (2+\sqrt{35}\right )} x+x^2} \, dx,x,\sqrt{1+2 x}\right )}{\sqrt{14 \left (2+\sqrt{35}\right )}}+\frac{\operatorname{Subst}\left (\int \frac{\sqrt{\frac{2}{5} \left (2+\sqrt{35}\right )}+2 x}{\sqrt{\frac{7}{5}}+\sqrt{\frac{2}{5} \left (2+\sqrt{35}\right )} x+x^2} \, dx,x,\sqrt{1+2 x}\right )}{\sqrt{14 \left (2+\sqrt{35}\right )}}\\ &=-\frac{\log \left (\sqrt{35}-\sqrt{10 \left (2+\sqrt{35}\right )} \sqrt{1+2 x}+5 (1+2 x)\right )}{\sqrt{14 \left (2+\sqrt{35}\right )}}+\frac{\log \left (\sqrt{35}+\sqrt{10 \left (2+\sqrt{35}\right )} \sqrt{1+2 x}+5 (1+2 x)\right )}{\sqrt{14 \left (2+\sqrt{35}\right )}}-\frac{2 \operatorname{Subst}\left (\int \frac{1}{\frac{2}{5} \left (2-\sqrt{35}\right )-x^2} \, dx,x,-\sqrt{\frac{2}{5} \left (2+\sqrt{35}\right )}+2 \sqrt{1+2 x}\right )}{\sqrt{35}}-\frac{2 \operatorname{Subst}\left (\int \frac{1}{\frac{2}{5} \left (2-\sqrt{35}\right )-x^2} \, dx,x,\sqrt{\frac{2}{5} \left (2+\sqrt{35}\right )}+2 \sqrt{1+2 x}\right )}{\sqrt{35}}\\ &=-\sqrt{\frac{2}{7 \left (-2+\sqrt{35}\right )}} \tan ^{-1}\left (\sqrt{\frac{5}{2 \left (-2+\sqrt{35}\right )}} \left (\sqrt{\frac{2}{5} \left (2+\sqrt{35}\right )}-2 \sqrt{1+2 x}\right )\right )+\sqrt{\frac{2}{7 \left (-2+\sqrt{35}\right )}} \tan ^{-1}\left (\sqrt{\frac{5}{2 \left (-2+\sqrt{35}\right )}} \left (\sqrt{\frac{2}{5} \left (2+\sqrt{35}\right )}+2 \sqrt{1+2 x}\right )\right )-\frac{\log \left (\sqrt{35}-\sqrt{10 \left (2+\sqrt{35}\right )} \sqrt{1+2 x}+5 (1+2 x)\right )}{\sqrt{14 \left (2+\sqrt{35}\right )}}+\frac{\log \left (\sqrt{35}+\sqrt{10 \left (2+\sqrt{35}\right )} \sqrt{1+2 x}+5 (1+2 x)\right )}{\sqrt{14 \left (2+\sqrt{35}\right )}}\\ \end{align*}
Mathematica [C] time = 0.246324, size = 112, normalized size = 0.51 \[ \frac{2 \left (\sqrt{2-i \sqrt{31}} \left (\sqrt{31}-2 i\right ) \tanh ^{-1}\left (\frac{\sqrt{10 x+5}}{\sqrt{2-i \sqrt{31}}}\right )+\sqrt{2+i \sqrt{31}} \left (\sqrt{31}+2 i\right ) \tanh ^{-1}\left (\frac{\sqrt{10 x+5}}{\sqrt{2+i \sqrt{31}}}\right )\right )}{7 \sqrt{155}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.071, size = 607, normalized size = 2.8 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{{\left (5 \, x^{2} + 3 \, x + 2\right )} \sqrt{2 \, x + 1}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.61098, size = 1427, normalized size = 6.55 \begin{align*} -\frac{1}{470890} \, \sqrt{217} 35^{\frac{1}{4}}{\left (2 \, \sqrt{35} \sqrt{31} - 35 \, \sqrt{31}\right )} \sqrt{4 \, \sqrt{35} + 70} \log \left (4340 \, \sqrt{217} 35^{\frac{1}{4}} \sqrt{31} \sqrt{2 \, x + 1} \sqrt{4 \, \sqrt{35} + 70} + 9417800 \, x + 941780 \, \sqrt{35} + 4708900\right ) + \frac{1}{470890} \, \sqrt{217} 35^{\frac{1}{4}}{\left (2 \, \sqrt{35} \sqrt{31} - 35 \, \sqrt{31}\right )} \sqrt{4 \, \sqrt{35} + 70} \log \left (-4340 \, \sqrt{217} 35^{\frac{1}{4}} \sqrt{31} \sqrt{2 \, x + 1} \sqrt{4 \, \sqrt{35} + 70} + 9417800 \, x + 941780 \, \sqrt{35} + 4708900\right ) - \frac{2}{7595} \, \sqrt{217} 35^{\frac{3}{4}} \sqrt{4 \, \sqrt{35} + 70} \arctan \left (\frac{1}{235445} \, \sqrt{1085} \sqrt{217} 35^{\frac{1}{4}} \sqrt{\sqrt{217} 35^{\frac{1}{4}} \sqrt{31} \sqrt{2 \, x + 1} \sqrt{4 \, \sqrt{35} + 70} + 2170 \, x + 217 \, \sqrt{35} + 1085} \sqrt{4 \, \sqrt{35} + 70} - \frac{1}{217} \, \sqrt{217} 35^{\frac{1}{4}} \sqrt{2 \, x + 1} \sqrt{4 \, \sqrt{35} + 70} - \frac{1}{31} \, \sqrt{35} \sqrt{31} - \frac{2}{31} \, \sqrt{31}\right ) - \frac{2}{7595} \, \sqrt{217} 35^{\frac{3}{4}} \sqrt{4 \, \sqrt{35} + 70} \arctan \left (\frac{1}{470890} \, \sqrt{217} 35^{\frac{1}{4}} \sqrt{-4340 \, \sqrt{217} 35^{\frac{1}{4}} \sqrt{31} \sqrt{2 \, x + 1} \sqrt{4 \, \sqrt{35} + 70} + 9417800 \, x + 941780 \, \sqrt{35} + 4708900} \sqrt{4 \, \sqrt{35} + 70} - \frac{1}{217} \, \sqrt{217} 35^{\frac{1}{4}} \sqrt{2 \, x + 1} \sqrt{4 \, \sqrt{35} + 70} + \frac{1}{31} \, \sqrt{35} \sqrt{31} + \frac{2}{31} \, \sqrt{31}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{2 x + 1} \left (5 x^{2} + 3 x + 2\right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{{\left (5 \, x^{2} + 3 \, x + 2\right )} \sqrt{2 \, x + 1}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]